-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publisher: Clean up disk space before building #271
Conversation
bcb3acb
to
b6ef3c3
Compare
Some images (like slc9-gpu-builder) are too big for the free runner, so we need to remove some stuff before, mostly unused language packages Reference for the free disk space: actions/runner-images#2840 Builder error message: ``` ==> docker: At least 11799MB more space needed on the / filesystem. ```
b6ef3c3
to
3dec785
Compare
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v3 | ||
|
||
# Some images are too large and we run out of disk space, so try to free some | ||
- name: Free Disk Space (Ubuntu) | ||
uses: jlumbroso/free-disk-space@v1.3.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we clone this in our own alisw area? I'd rather avoid dependency on actions controlled by others.
sudo rm -rf /usr/share/dotnet || true | ||
sudo rm -rf /opt/ghc || true | ||
sudo rm -rf /usr/local/.ghcup || true | ||
sudo docker image prune --all --force || true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we need only the last line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm trying to remove as many things from the default builder as possible because the slc9-gpu-builder
is huge. It still doesn't fit, I'll have to find more space to regain...
==> docker: Stderr: Error response from daemon: write /opt/rocm-6.2.4/lib/rocfft/rocfft_kernel_cache.db: no space left on device
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine, but do we have:
sudo rm -rf /usr/local/lib/android || true
sudo rm -rf /usr/share/dotnet || true
sudo rm -rf /opt/ghc || true
sudo rm -rf /usr/local/.ghcup || true
in the first place? I mean, Haskell ? CSharp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I know, the images come with basically everything preinstalled, to make them easier to use (and even several versions of some things, like 5 or 6 Pythons...). It's a questionable approach in my opinion, but at least it means we have some space to regain
https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely questionable... Merging..
Some images (like slc9-gpu-builder) are too big for the free runner, so
we need to remove some stuff before, mostly unused language packages
Reference for the free disk space:
actions/runner-images#2840
Builder error message: